package entity;

public class Course {

	public int getCourseNumber() {
		return courseNumber;
	}
	@Override
	public String toString() {
		return "Course [courseNumber=" + courseNumber + ", courseName=" + courseName + ", courseSemester="
				+ courseSemester + ", courseScore=" + courseScore + "]";
	}
	@Override
	public boolean equals(Object obj) {
		/*if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (!(obj instanceof Course)) {
			return false;
		}*/
		Course other = (Course) obj;
		return this.courseName.equals(other.courseName) && this.courseNumber == (other.courseNumber);
	}
	public void setCourseNumber(int courseNumber) {
		this.courseNumber = courseNumber;
	}
	public Course(int courseNumber, String courseName, int courseSemester, int courseScore) {
		super();
		this.courseNumber = courseNumber;
		this.courseName = courseName;
		this.courseSemester = courseSemester;
		this.courseScore = courseScore;
	}
	public Course() {
		super();
	}
	public String getCourseName() {
		return courseName;
	}
	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}
	public int getCourseSemester() {
		return courseSemester;
	}
	public void setCourseSemester(int couseSemester) {
		this.courseSemester = couseSemester;
	}
	public int getCourseScore() {
		return courseScore;
	}
	public void setCourseScore(int courseScore) {
		this.courseScore = courseScore;
	}
	private int courseNumber;
	private String courseName;
	private int courseSemester;
	private int courseScore;
}
